package com.mzj.saas.mservice.application.repository;

import com.mzj.saas.mservice.application.entity.HouseAuditSet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface HouseAuditSetRepository extends PagingAndSortingRepository<HouseAuditSet, Long>, JpaSpecificationExecutor<HouseAuditSet>, JpaRepository<HouseAuditSet, Long> {
    HouseAuditSet findByOrgId(Long orgId);

    HouseAuditSet findByOrgIdAndStatus(Long orgId, Integer status);

    HouseAuditSet findByAuditIdAndStatus(String auditId, Integer status);
}
